package org.example.server.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.example.api.goods.goods.enums.GoodsStatusEnum;
import org.example.frw.api.base.entity.BaseEntity;

@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@TableName("tb_goods_sku")
public class GoodsSkuEntity extends BaseEntity {
  /**
   * 商品ID
   */
  private Long goodsId;
  /**
   * sku编码
   */
  private String skuCode;
  /**
   * 规格名称
   */
  private String name;

  /**
   * 规格值
   */
  private String description;

  /**
   * sku图片
   */
  private String image;
  /**
   * 销售价格
   */
  private Long price;
  /**
   * 划线价格
   */
  private Long linePrice;
  /**
   * 成本价格
   */
  private Long costPrice;
  /**
   * 库存
   */
  private Long stock;
  /**
   * 库存预警
   */
  private Boolean warnStock;
  /**
   * sku状态
   */
  private GoodsStatusEnum status;

}